package com.tn.wservice;

import java.util.HashMap;


import com.tn.service.dwr.jaxws.Validate;
import com.tn.service.dwr.jaxws.ValidateResponse;
import com.tn.wservice.IYSNWebService.ParamKey;
import com.tn.xfer.DwrResponse;

public class LoginWS implements IYSNWebService {
	@BusinessObject(value = Validate.class) //web service's method  object
	public Object createOrSavePurchaseOrder(HashMap<ParamKey, Object> map) {
		Validate input = (Validate) map
				.get(ParamKey.BUSINESS_OBJECT);
		POAdapter adapter = new POAdapter(); //Login
		DwrResponse resp = adapter.validateLogin(input.getArg0(), input.getArg1(), input.getArg2());
		ValidateResponse ret = new ValidateResponse();
		ret.setReturn(resp);

		return ret;
	}
}

//soap handler will set value in business object key.
//soap handler will invoke business object annoated method matching with qname

